package com.ecut.property_project.mapper.building;

import com.ecut.property_project.model.building.BuildingPurpose;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BuildingPurposeMapper {
    int deleteByPrimaryKey(Integer purposeId);

    int insert(BuildingPurpose record);

    int insertSelective(BuildingPurpose record);
    List<BuildingPurpose> selectAll();

    List<BuildingPurpose> selectByPage(Integer page, Integer pageSize);

    BuildingPurpose selectByPrimaryKey(Integer purposeId);

    List<BuildingPurpose> selectByHeadId(String headId);

    int updateByPrimaryKeySelective(BuildingPurpose record);

    int updateByPrimaryKey(BuildingPurpose record);
}